package co.gov.medellin.ssti.sub.model.service.impl;

import java.util.Collection;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import co.gov.medellin.ssti.sub.model.dao.ReportTotalBenBerDAO;
import co.gov.medellin.ssti.sub.model.dao.exception.DAOException;
import co.gov.medellin.ssti.sub.model.service.ReportTotalBenBerService;
import co.gov.medellin.ssti.sub.model.vo.RepDetBeneficiarioVO;
import co.gov.medellin.ssti.sub.model.vo.ReportTotalBenBerVO;

@Service
public class ReportTotalBenBerServiceImpl implements ReportTotalBenBerService {
	@Autowired
	ReportTotalBenBerDAO reportTotalBenBerDAOImpl2;

	public Collection<ReportTotalBenBerVO> findBeneficiosBeneficiarios(
			RepDetBeneficiarioVO criterea) {
		try {
			return reportTotalBenBerDAOImpl2
					.findBeneficiosBeneficiarios(criterea);
		} catch (Exception e) {
			throw new DAOException(e);
		}
	}

	public RepDetBeneficiarioVO findFilters(RepDetBeneficiarioVO objRtbbVO) {
		try {
			return reportTotalBenBerDAOImpl2.findFilters(objRtbbVO);
		} catch (Exception e) {
			throw new DAOException(e);
		}
	}

}
